package cn.pfz.search.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @Author: 普发忠
 * @Date: 2021/10/20/8:52
 * es目的地实体类
 */
@Data
@Document(indexName = "wolf2w_destination",type = "_doc")
public class DestinationEs implements Serializable {
    public static final String INDEX_NAME = "wolf2w_destination";
  public static final String TYPE_NAME = "_doc";
    @Id
    @Field(store = true,index = false,type = FieldType.Long)
    private Long id;
    @Field(store = true,index = true,type = FieldType.Keyword)
    private String name;
    @Field(store = true,index = true,type = FieldType.Text,analyzer ="ik_max_word",searchAnalyzer = "ik_max_word")
    private String info;
}
